@import '../../variables.scss';

.hzdz-weather {
  padding: 24px 20px;
  font-family: SourceHanSansSC, SourceHanSansSC;
  // background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
  background: url(http://localhost:8085/static/images/shouye/编组32.png);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: inline-flex !important;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
    
  // 响应式适配 - 基准分辨率为3952x1248
  @media screen and (max-width: 1920px) {
    transform: scale(0.4862); // 1920/3952 ≈ 0.4862
    transform-origin: top left;
  }
  
  @media screen and (max-width: 1080px) {
    transform: scale(0.2733); // 1080/3952 ≈ 0.2733
    transform-origin: top left;
  }
  
  @media screen and (min-width: 5120px) {
    transform: scale(1.2955); // 5120/3952 ≈ 1.2955
    transform-origin: top left;
  }

  // 添加微妙的发光效果
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  }

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .weather-text {
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 24px;
  }


  .weather-title {
    font-weight: 400;
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 24px;
  }

  .divider {
    width: 1px;
    height: 24px;
    background: #2CEEEC;
  }

}
